<?php

class Core_Action_Admin_Setting_Mail_Transport_Index extends Action_Admin
{
	public function execute($request, $initial = false, $script = null)
	{
		if ($initial)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/setting',
					'label' => 'Setting'
				),
				array(
					'url' => 'admin/setting/mail',
					'label' => 'Mail'
				),
				array(
					'url' => 'admin/setting/mail/transport',
					'label' => 'Transport'
				)
			));

		}

		$form = Form::factory('core/admin/setting/mail/transport');

		$request -> response = View::render($script = 'core/html/admin/edit', $data = array('form' => $form));
	}

}
